<template>
  <div class="login-container">
    <el-card shadow="hover">
      <!--登录标题  -->
      <div class="login-title"></div>
      <!-- 表单盒子 -->
      <el-form ref="form">
        <!-- 用户名 -->
        <el-form-item>
          <el-input placeholder="请输入用户名" prefix-icon="el-icon-s-custom"></el-input>
        </el-form-item>
        <!-- 密码 -->
        <el-form-item>
          <el-input placeholder="请输入密码" prefix-icon="el-icon-key"></el-input>
        </el-form-item>
        <!-- 按钮 -->
        <el-form-item>
          <el-button type="primary">登录</el-button>
        </el-form-item>
      </el-form>
      <el-link :underline="false">还没有账号去注册</el-link>
    </el-card>
  </div>
</template>

<style lang="less">
.login-container {
  height: 100%;
  background: url(../assets/images/login_bg.jpg) no-repeat;
  background-size: cover;
  .el-card {
    width: 400px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .login-title {
      height: 60px;
      background: url(../assets/images/login_title.png) 50% no-repeat;
    }
    .el-button {
      width: 100%;
    }
  }
}
</style>
